package com.wxmit.module.system.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wxmit.module.system.domain.dto.UpdateUserPwDTO;
import com.wxmit.module.system.domain.vo.SysUserVO;
import com.wxmit.system.base.core.IShushanService;
import com.wxmit.module.system.domain.SysUser;
import com.wxmit.system.base.core.ShushanPage;
import com.wxmit.system.base.domain.PageDTO;

import java.io.InputStream;
import java.util.Date;

/**
 * @Description ISysUserService
 * @Author huangxiong
 * @Date 2022/7/11 14:45
 * @Version V1.0
 */
public interface ISysUserService extends IShushanService<SysUser> {

    void addUserRole(Long userId,Long[] roleIds);

    SysUser getByUserName(String userName);

    SysUserVO getUserInfo(Long userId);

    SysUser getInfo(Long id);

    Boolean resetPw(Long id);

    Boolean updateStatus(Long id, String status);

    void updateLoginStatus(Long id, String clientIP, Date date);

    void updatePw(UpdateUserPwDTO pw);

    void increaseLoginErr(Long id);

    void clearUpAllLoginErr();

    void clearUpLoginErr(Long id);

    void importExcel(InputStream inputStream);


    void updateAvatar(Long id,String avatar);
}
